#define _CRT_SECURE_NO_WARNINGS 1
#include "queue.h"

void QueueTest1()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePrint(&q);
	QueuePop(&q);
	QueuePop(&q);
	QueuePop(&q);

	QueuePrint(&q);

	QueueDestroy(&q);
}

void QueueTest2()
{
	Queue q;
	QueueInit(&q);
	QueuePush(&q, 1);
	QueuePush(&q, 2);
	QueuePush(&q, 3);
	QueuePush(&q, 4);
	QueuePrint(&q);

	printf("%d\n", QueueFront(&q));
	printf("%d\n", QueueBack(&q));
	printf("%d\n", QueueSize(&q));

	QueueDestroy(&q);
}

int main()
{
	//QueueTest1();
	QueueTest2();
	return 0;
}